package com.netty.netty;

import com.netty.netty.test.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author bbz
 */
@SpringBootApplication
public class NettyApplication {

    public static void main(String[] args) {

        SpringApplication.run(NettyApplication.class);
        try {
            new NettyServer(Integer.valueOf(args[0])).start();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
